package com.oggero.glossarium.persistence.mappers;

import com.oggero.glossarium.persistence.entities.VocaboloEntity;
import com.oggero.glossarium.persistence.models.Vocabolo;

/**
 *
 * @author Alessio
 */
public class VocaboloMapper {

    public VocaboloEntity convertToEntity(Object obj) {
        Vocabolo vocabolo = (Vocabolo) obj;
        VocaboloEntity vocaboloEntity = new VocaboloEntity();
        vocaboloEntity.setVocaboloIta(vocabolo.getVocaboloIta());
        vocaboloEntity.setVocaboloEsp(vocabolo.getVocaboloEsp());
        vocaboloEntity.setVocaboloEng(vocabolo.getVocaboloEng());
        
        return vocaboloEntity;
    }
    
}
